<form action="{action}" method="post">
<table border="0" id="table13" cellspacing="0" cellpadding="3">
	
	<tr>
		<td valign="top">
		<table border="0" id="table17" cellspacing="1" cellpadding="2">
			<tr>
				<td colspan="2" bgcolor="#5A79C6" align="center">
				<font color="#FFFFFF">正码一</font></td>
				<td colspan="2" bgcolor="#5A79C6" align="center">
				<font color="#FFFFFF">正码二</font></td>
				<td colspan="2" bgcolor="#5A79C6" align="center">
				<font color="#FFFFFF">正码三</font></td>
				<td colspan="2" bgcolor="#5A79C6" align="center">
				<font color="#FFFFFF">正码四</font></td>
				<td colspan="2" bgcolor="#5A79C6" align="center">
				<font color="#FFFFFF">正码五</font></td>
				<td colspan="2" bgcolor="#5A79C6" align="center">
				<font color="#FFFFFF">正码六</font></td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB" align="center">单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_1" value="{r15_1_1}">
					<input type=button value=- onclick=m1(r15_1_1,-0.01)>
					<input type=button value=+ onclick=m1(r15_1_1,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_1" value="{r15_2_1}">
					<input type=button value=- onclick=m1(r15_2_1,-0.01)>
					<input type=button value=+ onclick=m1(r15_2_1,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_1" value="{r15_3_1}">
					<input type=button value=- onclick=m1(r15_3_1,-0.01)>
					<input type=button value=+ onclick=m1(r15_3_1,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_1" value="{r15_4_1}">
					<input type=button value=- onclick=m1(r15_4_1,-0.01)>
					<input type=button value=+ onclick=m1(r15_4_1,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_1" value="{r15_5_1}">
					<input type=button value=- onclick=m1(r15_5_1,-0.01)>
					<input type=button value=+ onclick=m1(r15_5_1,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_1" value="{r15_6_1}">
					<input type=button value=- onclick=m1(r15_6_1,-0.01)>
					<input type=button value=+ onclick=m1(r15_6_1,0.01)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB" align="center">双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_2" value="{r15_1_2}">
					<input type=button value=- onclick=m1(r15_1_2,-0.01)>
					<input type=button value=+ onclick=m1(r15_1_2,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_2" value="{r15_2_2}">
					<input type=button value=- onclick=m1(r15_2_2,-0.01)>
					<input type=button value=+ onclick=m1(r15_2_2,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">双</td>

				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_2" value="{r15_3_2}">
					<input type=button value=- onclick=m1(r15_3_2,-0.01)>
					<input type=button value=+ onclick=m1(r15_3_2,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_2" value="{r15_4_2}">
					<input type=button value=- onclick=m1(r15_4_2,-0.01)>
					<input type=button value=+ onclick=m1(r15_4_2,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_2" value="{r15_5_2}">
					<input type=button value=- onclick=m1(r15_5_2,-0.01)>
					<input type=button value=+ onclick=m1(r15_5_2,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_2" value="{r15_6_2}">
					<input type=button value=- onclick=m1(r15_6_2,-0.01)>
					<input type=button value=+ onclick=m1(r15_6_2,0.01)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB" align="center">大</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_3" value="{r15_1_3}">
					<input type=button value=- onclick=m1(r15_1_3,-0.01)>
					<input type=button value=+ onclick=m1(r15_1_3,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">大</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_3" value="{r15_2_3}">
					<input type=button value=- onclick=m1(r15_2_3,-0.01)>
					<input type=button value=+ onclick=m1(r15_2_3,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">大</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_3" value="{r15_3_3}">
					<input type=button value=- onclick=m1(r15_3_3,-0.01)>
					<input type=button value=+ onclick=m1(r15_3_3,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">大</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_3" value="{r15_4_3}">
					<input type=button value=- onclick=m1(r15_4_3,-0.01)>
					<input type=button value=+ onclick=m1(r15_4_3,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">大</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_3" value="{r15_5_3}">
					<input type=button value=- onclick=m1(r15_5_3,-0.01)>
					<input type=button value=+ onclick=m1(r15_5_3,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">大</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_3" value="{r15_6_3}">
					<input type=button value=- onclick=m1(r15_6_3,-0.01)>
					<input type=button value=+ onclick=m1(r15_6_3,0.01)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB" align="center">小</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_4" value="{r15_1_4}">
					<input type=button value=- onclick=m1(r15_1_4,-0.01)>
					<input type=button value=+ onclick=m1(r15_1_4,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">小</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_4" value="{r15_2_4}">
					<input type=button value=- onclick=m1(r15_2_4,-0.01)>
					<input type=button value=+ onclick=m1(r15_2_4,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">小</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_4" value="{r15_3_4}">
					<input type=button value=- onclick=m1(r15_3_4,-0.01)>
					<input type=button value=+ onclick=m1(r15_3_4,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">小</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_4" value="{r15_4_4}">
					<input type=button value=- onclick=m1(r15_4_4,-0.01)>
					<input type=button value=+ onclick=m1(r15_4_4,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">小</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_4" value="{r15_5_4}">
					<input type=button value=- onclick=m1(r15_5_4,-0.01)>
					<input type=button value=+ onclick=m1(r15_5_4,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">小</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_4" value="{r15_6_4}">
					<input type=button value=- onclick=m1(r15_6_4,-0.01)>
					<input type=button value=+ onclick=m1(r15_6_4,0.01)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB">红波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_5" value="{r15_1_5}">
					<input type=button value=- onclick=m1(r15_1_5,-0.02)>
					<input type=button value=+ onclick=m1(r15_1_5,0.02)>					</td>
				<td bgcolor="#C0D6EB">红波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_5" value="{r15_2_5}">
					<input type=button value=- onclick=m1(r15_2_5,-0.02)>
					<input type=button value=+ onclick=m1(r15_2_5,0.02)>					</td>
				<td bgcolor="#C0D6EB">红波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_5" value="{r15_3_5}">
					<input type=button value=- onclick=m1(r15_3_5,-0.02)>
					<input type=button value=+ onclick=m1(r15_3_5,0.02)>					</td>
				<td bgcolor="#C0D6EB">红波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_5" value="{r15_4_5}">
					<input type=button value=- onclick=m1(r15_4_5,-0.02)>
					<input type=button value=+ onclick=m1(r15_4_5,0.02)>					</td>
				<td bgcolor="#C0D6EB">红波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_5" value="{r15_5_5}">
					<input type=button value=- onclick=m1(r15_5_5,-0.02)>
					<input type=button value=+ onclick=m1(r15_5_5,0.02)>					</td>
				<td bgcolor="#C0D6EB">红波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_5" value="{r15_6_5}">
					<input type=button value=- onclick=m1(r15_6_5,-0.02)>
					<input type=button value=+ onclick=m1(r15_6_5,0.02)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB">蓝波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_6" value="{r15_1_6}">
					<input type=button value=- onclick=m1(r15_1_6,-0.02)>
					<input type=button value=+ onclick=m1(r15_1_6,0.02)>					</td>
				<td bgcolor="#C0D6EB">蓝波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_6" value="{r15_2_6}">
					<input type=button value=- onclick=m1(r15_2_6,-0.02)>
					<input type=button value=+ onclick=m1(r15_2_6,0.02)>					</td>
				<td bgcolor="#C0D6EB">蓝波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_6" value="{r15_3_6}">
					<input type=button value=- onclick=m1(r15_3_6,-0.02)>
					<input type=button value=+ onclick=m1(r15_3_6,0.02)>					</td>
				<td bgcolor="#C0D6EB">蓝波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_6" value="{r15_4_6}">
					<input type=button value=- onclick=m1(r15_4_6,-0.02)>
					<input type=button value=+ onclick=m1(r15_4_6,0.02)>					</td>
				<td bgcolor="#C0D6EB">蓝波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_6" value="{r15_5_6}">
					<input type=button value=- onclick=m1(r15_5_6,-0.02)>
					<input type=button value=+ onclick=m1(r15_5_6,0.02)>					</td>
				<td bgcolor="#C0D6EB">蓝波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_6" value="{r15_6_6}">
					<input type=button value=- onclick=m1(r15_6_6,-0.02)>
					<input type=button value=+ onclick=m1(r15_6_6,0.02)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB">绿波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_7" value="{r15_1_7}">
					<input type=button value=- onclick=m1(r15_1_7,-0.02)>
					<input type=button value=+ onclick=m1(r15_1_7,0.02)>					</td>
				<td bgcolor="#C0D6EB">绿波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_7" value="{r15_2_7}">
					<input type=button value=- onclick=m1(r15_2_7,-0.02)>
					<input type=button value=+ onclick=m1(r15_2_7,0.02)>					</td>
				<td bgcolor="#C0D6EB">绿波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_7" value="{r15_3_7}">
					<input type=button value=- onclick=m1(r15_3_7,-0.02)>
					<input type=button value=+ onclick=m1(r15_3_7,0.02)>					</td>
				<td bgcolor="#C0D6EB">绿波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_7" value="{r15_4_7}">
					<input type=button value=- onclick=m1(r15_4_7,-0.02)>
					<input type=button value=+ onclick=m1(r15_4_7,0.02)>					</td>
				<td bgcolor="#C0D6EB">绿波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_7" value="{r15_5_7}">
					<input type=button value=- onclick=m1(r15_5_7,-0.02)>
					<input type=button value=+ onclick=m1(r15_5_7,0.02)>					</td>
				<td bgcolor="#C0D6EB">绿波</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_7" value="{r15_6_7}">
					<input type=button value=- onclick=m1(r15_6_7,-0.02)>
					<input type=button value=+ onclick=m1(r15_6_7,0.02)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB" align="center">合单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_8" value="{r15_1_8}">
					<input type=button value=- onclick=m1(r15_1_8,-0.01)>
					<input type=button value=+ onclick=m1(r15_1_8,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_8" value="{r15_2_8}">
					<input type=button value=- onclick=m1(r15_2_8,-0.01)>
					<input type=button value=+ onclick=m1(r15_2_8,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_8" value="{r15_3_8}">
					<input type=button value=- onclick=m1(r15_3_8,-0.01)>
					<input type=button value=+ onclick=m1(r15_3_8,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_8" value="{r15_4_8}">
					<input type=button value=- onclick=m1(r15_4_8,-0.01)>
					<input type=button value=+ onclick=m1(r15_4_8,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_8" value="{r15_5_8}">
					<input type=button value=- onclick=m1(r15_5_8,-0.01)>
					<input type=button value=+ onclick=m1(r15_5_8,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合单</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_8" value="{r15_6_8}">
					<input type=button value=- onclick=m1(r15_6_8,-0.01)>
					<input type=button value=+ onclick=m1(r15_6_8,0.01)>					</td>
			</tr>
			<tr>
				<td bgcolor="#C0D6EB" align="center">合双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_1_9" value="{r15_1_9}">
					<input type=button value=- onclick=m1(r15_1_9,-0.01)>
					<input type=button value=+ onclick=m1(r15_1_9,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_2_9" value="{r15_2_9}">
					<input type=button value=- onclick=m1(r15_2_9,-0.01)>
					<input type=button value=+ onclick=m1(r15_2_9,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_3_9" value="{r15_3_9}">
					<input type=button value=- onclick=m1(r15_3_9,-0.01)>
					<input type=button value=+ onclick=m1(r15_3_9,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_4_9" value="{r15_4_9}">
					<input type=button value=- onclick=m1(r15_4_9,-0.01)>
					<input type=button value=+ onclick=m1(r15_4_9,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_5_9" value="{r15_5_9}">
					<input type=button value=- onclick=m1(r15_5_9,-0.01)>
					<input type=button value=+ onclick=m1(r15_5_9,0.01)>					</td>
				<td bgcolor="#C0D6EB" align="center">合双</td>
				<td bgcolor="#E7EBEF">
					<input size=4 name="r15_6_9" value="{r15_6_9}">
					<input type=button value=- onclick=m1(r15_6_9,-0.01)>
					<input type=button value=+ onclick=m1(r15_6_9,0.01)>					</td>
			</tr>
		</table>		</td>
		<td valign="top">&#12288;</td>
	</tr>
</table>
<br>
<input type="submit" value="更改">
<input type="button" value="重读" onclick="location.replace('{action}')">
</form>

<script>
function m1(o,d)
{
	var i = o.value - 0 + d;
	o.value = fixstr(i);
}
var gg1 = [1,3,5,7,9,10,12,14,16,18,21,23,25,27,29,30,32,34,36,38,41,43,45,47];       // 合单
var gg2 = [2,4,6,8,11,13,15,17,19,20,22,24,26,28,31,33,35,37,39,40,42,44,46,48];      // 合双
var gx1 = get_DomNumber();  // 家禽类
var gx2 = get_WildNumber(); // 野兽类
var po1 = [1,2,7,8,12,13,18,19,23,24,29,30,34,35,40,45,46];
var po2 = [3,4,9,10,14,15,20,25,26,31,36,37,41,42,47,48];
var po3 = [5,6,11,16,17,21,22,27,28,32,33,38,39,43,44,49];

function mm2(k)
{
	var i;
	var da = document.all.ss1.value - 0;
	var db = document.all.ss2.value - 0;
	switch (k) {
		case 1: //单
			for (i=1; i < 50; i++) {
				if (i%2==1) {
					if (da != 0) {
						kk = da + (document.all["r0_"+d2(i)].value - 0);
						document.all["r0_"+d2(i)].value = fixstr(kk);
					}
				}
			}
			break;
		case 2: //双
			for (i=1; i < 50; i++) {
				if (i%2==0) {
					if (da != 0) {
						kk = da + (document.all["r0_"+d2(i)].value - 0);
						document.all["r0_"+d2(i)].value = fixstr(kk);
					}
				}
			}
			break;
		case 3: //大
			for (i=25; i < 49; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(i)].value - 0);
					document.all["r0_"+d2(i)].value = fixstr(kk);
				}
			}
			break;
		case 4: //小
			for (i=1; i < 25; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(i)].value - 0);
					document.all["r0_"+d2(i)].value = fixstr(kk);
				}
			}
			break;
		case 5: //合单
			for (i=0; i < gg1.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(gg1[i])].value - 0);
					document.all["r0_"+d2(gg1[i])].value = fixstr(kk);
				}
			}
			break;
		case 6: //合双
			for (i=0; i < gg2.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(gg2[i])].value - 0);
					document.all["r0_"+d2(gg2[i])].value = fixstr(kk);
				}
			}
			break;
		case 7: //红
			for (i=0; i < po1.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(po1[i])].value - 0);
					document.all["r0_"+d2(po1[i])].value = fixstr(kk);
				}
			}
			break;
		case 8: //蓝
			for (i=0; i < po2.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(po2[i])].value - 0);
					document.all["r0_"+d2(po2[i])].value = fixstr(kk);
				}
			}
			break;
		case 9: //绿
			for (i=0; i < po3.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(po3[i])].value - 0);
					document.all["r0_"+d2(po3[i])].value = fixstr(kk);
				}
			}
			break;
		case 10: //家禽
			for (i=0; i < gx1.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(gx1[i])].value - 0);
					document.all["r0_"+d2(gx1[i])].value = fixstr(kk);
				}
			}
			break;
		case 11: //野兽
			for (i=0; i < gx2.length; i++) {
				if (da != 0) {
					kk = da + (document.all["r0_"+d2(gx2[i])].value - 0);
					document.all["r0_"+d2(gx2[i])].value = fixstr(kk);
				}
			}
			break;
	}
}

function fixstr(num)
{
	var numv=num-0;
	var sign=(numv>=0?1:-1); // Will give 1 for num=0
	var numabs=numv*sign;
	var naint=Math.floor(numabs);
	var nacent=Math.round((numabs-naint)*100);
	if (nacent>=100) {nacent=0; naint++;}
	var nais=''+naint;
	var nacs=(nacent<10?'0':'')+nacent;
	if (naint+nacent==0) sign=1;
	return (sign==1?'':'-')+nais+'.'+nacs;
}
/* 取得生肖年的配置,
/* 则传回依生肖对应号码组合的阵列
/* index =1~12 , TwelveAnimalSeed=生肖本命年(k_config->get("chinayear"))
*/
function GetChinaYearNumber(index , TwelveAnimalSeed){
    if (index<=0 || index>12) return NaN;

		var tmpTwelveAnimalArray = [null,
		[1,13,25,37,49],   //1
		[2,14,26,38],      //2
		[3,15,27,39],      //3
		[4,16,28,40],      //4
		[5,17,29,41],      //5
		[6,18,30,42],      //6
		[7,19,31,43],      //7
		[8,20,32,44],      //8
		[9,21,33,45],      //9
		[10,22,34,46],     //10
		[11,23,35,47],     //11
		[12,24,36,48]];    //12

    var mapingArray = new Array();//用来存放对应的阵列
    for(var i=1;i <= 12;i++){
        if(i == TwelveAnimalSeed){//等於种子者为1
            mapingArray[i] = 1;
        }else if(i < TwelveAnimalSeed){//小於种子的
            mapingArray[i] = (TwelveAnimalSeed - i)+1;
        }else{//大於种子的
            var tmpLoopNum = i-TwelveAnimalSeed;
            var tmpCunt = 0;
            for(var j=12;j >=1 ;j--){
                tmpCunt++;
                if(tmpCunt == tmpLoopNum){
                    mapingArray[i] = j;
                    break;
                }
            }
        }
    }
    return tmpTwelveAnimalArray[mapingArray[index]];
}
function get_DomNumber()  // 家禽 = 牛、马、羊、鸡、狗、猪
{
  var yearArr=new Array();
  for (var k=2; k<13; k++) {
		switch (k) {
			case 2:/*牛*/case 7:/*马*/case 8:/*羊*/case 10:/*鸡*/case 11:/*狗*/case 12:/*猪*/
      var tmpArr = GetChinaYearNumber(k,{cchinayear});
      yearArr = yearArr.concat(tmpArr);//合并
    }
  }
  return yearArr;			
}

function get_WildNumber()  // 野兽 = 鼠、虎、兔、龙、蛇、猴
{
  var yearArr=new Array();
  for (var k=1; k<10; k++) {
		switch (k) {
			case 1:/*鼠*/case 3:/*虎*/case 4:/*兔*/case 5:/*龙*/case 6:/*蛇*/case 9:/*猴*/
      var tmpArr = GetChinaYearNumber(k,{cchinayear});
      yearArr = yearArr.concat(tmpArr);//合并
    }
  }
  return yearArr;
}
</script>